package com.wulian.service;

import com.github.pagehelper.PageInfo;
import com.wulian.entities.Patient;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xf
 * @date 2021/3/20 下午 2:34
 * @Description
 */
public interface PatientService {

    List<Patient> getAll();

    PageInfo<Patient> getAllByPage(@Param("pageNum")Integer pageNum, @Param("pageSize")Integer size);

    Patient getPatientById(Long id);

    void addPatient(Patient patient);

    void updatePatient(Patient patient);

    void deletePatientById(Long id);
}
